package com.kgc.scd.mapper;

import com.kgc.scd.bean.Coupon;
import com.kgc.scd.bean.CouponExample;
import java.util.List;

import com.kgc.scd.bean.OrderItemResult;
import org.apache.ibatis.annotations.Param;

public interface CouponMapper {
    long countByExample(CouponExample example);

    int deleteByExample(CouponExample example);

    int deleteByPrimaryKey(Integer couId);

    int insert(Coupon record);

    int insertSelective(Coupon record);

    List<Coupon> selectByExample(CouponExample example);

    Coupon selectByPrimaryKey(Integer couId);

    int updateByExampleSelective(@Param("record") Coupon record, @Param("example") CouponExample example);

    int updateByExample(@Param("record") Coupon record, @Param("example") CouponExample example);

    int updateByPrimaryKeySelective(Coupon record);

    int updateByPrimaryKey(Coupon record);

    List<Coupon> selectUserCouponByUidAndStatus(@Param("userId") String userId, @Param("status") Integer status);

    List<OrderItemResult> selectOrderItemResult(String orderId);

}